package com.abc.dto.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

import javax.validation.constraints.Size;

@Data
public class KnowledgeRequestDto {

    @Schema(description = "消息内容", example = "你好，请介绍一下Spring Boot")
    @NotBlank(message = "消息内容不能为空")
    @Size(max = 4000, message = "消息内容长度不能超过4000个字符")
    private String message;

    @Schema(description = "会话ID", example = "abc123def456")
    @NotBlank(message = "会话ID不能为空")
    @Size(min = 10, max = 64, message = "会话ID长度必须在10-64个字符之间")
    private String sessionId;

}
